local thbattle__qilunuo_zuiqiang = fk.CreateSkill {

  name = "thbattle__qilunuo_zuiqiang",

  tags = {},

}



thbattle__qilunuo_zuiqiang:addEffect("active", {
  anim_type = "control",
  prompt = "#thbattle__qilunuo_zuiqiang",
  target_filter = function(self, player, to_select, selected, selected_cards, card, extra_data)
    local target = to_select
    return target:inMyAttackRange(player) and #selected == 0 and not target:isNude()
  end,
  target_num = 1,
  max_phase_use_time = 1,
  on_use = function(self, room, cardUseEvent)
    local target = cardUseEvent.tos[1]
    local player = cardUseEvent.from
    local use=room:askToUseCard(target,{
      skill_name=thbattle__qilunuo_zuiqiang.name,
      pattern="slash",
      prompt="#thbattle__qilunuo_zuiqiang-use:" .. player.id,
      extra_data= { exclusive_targets = { player.id },bypass_times=true }
    })
    if use then
      use.extraUse=true
      room:useCard(use)
    else
      if not target:isNude() then
        local card = room:askForCardChosen(player, target, "he", thbattle__qilunuo_zuiqiang.name)
        room:throwCard(card, thbattle__qilunuo_zuiqiang.name, target, player)
      end
    end
  end
})

return thbattle__qilunuo_zuiqiang
